package com.gl.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 游戏积分表
 * </p>
 *
 * @author 晚风
 * @since 2024-12-25
 */
@TableName("game_roints")
@ApiModel(value = "GameRoints对象", description = "游戏积分表")
public class GameRoints implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("游戏积分id")
    @TableId(value = "point_id", type = IdType.AUTO)
    private Integer pointId;

    @ApiModelProperty("用户id，外键，关联到用户表")
    private Integer userId;

    @ApiModelProperty("本次游戏获得的积分")
    private Integer pointsEarned;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;


    public Integer getPointId() {
        return pointId;
    }

    public void setPointId(Integer pointId) {
        this.pointId = pointId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getPointsEarned() {
        return pointsEarned;
    }

    public void setPointsEarned(Integer pointsEarned) {
        this.pointsEarned = pointsEarned;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "GameRoints{" +
        "pointId=" + pointId +
        ", userId=" + userId +
        ", pointsEarned=" + pointsEarned +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
